<?php
namespace app\index\model;

use think\Model;

class Category extends Model
{
    // 定义时间戳字段关闭
    protected $autoWriteTimestamp = false;

    /**
     * sort_order排序后的栏目列表
     * @return mixed
     */
    public function cate_list()
    {
        return $this->order('sort_order desc')->select();
    }
}